package cn.flying.base.common.enums;


/**
 * @description: 响应码值枚举
 * @author: lvyong
 * @date: 2022年04月02日 21:04
 * @version: 1.0
 */
public enum RtCodeEnum implements BaseEnumInfo {
    /**
     * 9开头的码值定义为系统级别异常
     * 1开头的码值定义为用户类相关
     * 2开头的码值定义为正常的返回
     * 3预留为2的补充
     * 其他为业务提示异常
     */
    R_SUCCESS("00000", "成功！"),
    R_ERROR("99999", "服务器内部错误！"),
    R90000("90000", "系统数据异常！"),
    R90001("90001", "服务器正忙，请稍后再试！"),
    R10000("10000", "登录成功！"),
    R10001("10001", "账户不存在！"),
    R10002("10002", "账户被锁定！"),
    R10003("10003", "用户或者密码错误！"),
    R10004("10004", "验证码错误！"),
    R10005("10005", "用户Token失效！"),
    R10006("10006", "用户退出登录成功！"),
    R10009("10009", "租户号不存在！"),
    R10010("10010", "密码过期！"),
    R10011("10011", "账户过期！"),
    R10012("10012", "账户被禁用！"),
    R10013("10013", "登录失败！"),
    R10014("10014", "匿名用户无权限访问！"),
    R10015("10015", "无权限访问,请联系管理员！"),
    R10016("10016", "账户注册手机号不正确！"),
    R10017("10017", "当前登录已失效，请重新登录！"),
    R10018("10018", "您的账户在其他地方登录，被强制下线了！"),
    ;


    private String code;
    private String message;

    RtCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
